def genTuple(cube):
    lista = []
    for i in range(6):
        lista.append((cube, i + 1))
    return lista


bigList = []
for i in range(6):

    bigList.extend(genTuple(i + 1))
    i = i +1

#remove duplicates from list (1,2) is the same as (2,1)
for i in bigList:
    
    if i[0] <> i[1]:
        bigList.remove((i[1], i[0]))

        
onestack   = []
twoStack   = []
threeStack = []

for i in bigList:
     if i[0] == i[1]:
         onestack.append(i)
     
     if i[0] < i[1]:
         twoStack.append(i)
     else:
         threeStack.append(i)

print onestack
print twoStack

        
